<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: huajie <banhuajie@163.com>
// +----------------------------------------------------------------------

namespace Admin\Model;
use Think\Model;
use Admin\Model\AuthGroupModel;

/**
 * 留言模型
 */
class AreaModel extends Model{
	function getArea($id){
		$map['parentid'] = 0;
		if($id > 0){
			$map['parentid'] = $id;
		}
		return $this->where($map)->select();
	}
}
